package com.zxl.grocery.modular.crawler.warpper;

import com.zxl.grocery.common.constant.factory.ConstantFactory;
import com.zxl.grocery.common.warpper.BaseControllerWarpper;

import java.util.Map;

/**
 * 爬虫来源列表的包装类
 * Created by zxl on 2017/8/1 0001.
 */
public class CrawlerMgrWarpper extends BaseControllerWarpper{

    public CrawlerMgrWarpper(Object list) {
        super(list);
    }

    @Override
    protected void warpTheMap(Map<String, Object> map) {
        Integer status = (Integer) map.get("status");

        Integer updateUserId = (Integer) map.get("update_user_id");
        // System.out.println(updateUserId);
        // System.out.println(ConstantFactory.me().getUserNameById(updateUserId));
        map.put("updateUserName", ConstantFactory.me().getUserNameById(updateUserId));

        Integer createUserId = (Integer) map.get("create_user_id");
        //  System.out.println(createUserId);
        map.put("createUserName", ConstantFactory.me().getUserNameById(createUserId));
        //   System.out.println(ConstantFactory.me().getUserNameById(createUserId));

    }
}
